package models
{
	public class User extends Resource
	{		
		public function User(name:String = "", password:String = "", email:String = "") {
			super(new XML('<user />'));
			this.name 		= name;
			this.password 	= password;
			if(email.length) {
				this.email = email;
			}
		}
		
		public function get oid() : int {
			return _node.@oid;
		}
		public function set oid(oid:int) : void {
			_node.@oid = oid;
		}
		
		public function get name() : String {
			return _node.@name;
		}
		public function set name(name:String) : void {
			_node.@name = name;
		}
		
		public function get password() : String {
			return _node.@password;
		}
		public function set password(password:String) : void {
			_node.@password = password;
		}
		
		public function get email() : String {
			return _node.@email;
		}
		public function set email(email:String) : void {
			_node.@email = email;
		}
	}
}